import request from '@/utils/request'

export function getDistricts(query) {
  return request({
    url: '/foundation/district/getList',
    method: 'post',
    data: query
  })
}
export function getDistrictUsableList(data) {
  return request({
    url: '/foundation/district/getUsableList',
    method: 'post',
    data: data
  })
}


export function getDistrict(id) {
  return request({
    url: '/foundation/district/getDetail',
    method: 'post',
    data: id
  })
}

export function saveDistrict(id) {
  return request({
    url: '/foundation/district/save',
    method: 'post',
    data: id
  })
}

export function removeDistrictByID(id) {
  return request({
    url: '/foundation/district/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByDistrictID(formdata) {
  return request({
    url: '/foundation/district/change-status',
    method: 'post',
    data: formdata
  })
}

export function getDistrictAvabile(query) {
  return request({
    url: '/foundation/district/getAvailable',
    method: 'post',
    data: query
  })
}

